package com.szholly.pro.watergas_server.ps.android.bean;


import com.szholly.data.general.RowBase;

public class QcTaskTypeRow extends RowBase {
	
	public QcTaskTypeRow(String id, String name, String jobId) {
		setId(id);
		setName(name);
		setJobId(jobId);
	}
	
	public QcTaskTypeRow(String id, String name, String jobId, String tableCode) {
		setId(id);
		setName(name);
		setJobId(jobId);
		setTableCode(tableCode);
	}

	public String getId() {
		return (String) get("id");
	}

	public void setId(String id) {
		put("id", id);
	}

	public String getName() {
		return (String) get("name");
	}

	public void setName(String name) {
		put("name", name);
	}

	public String getJobId() {
		return (String) get("jobId");
	}

	public void setJobId(String jobId) {
		put("jobId", jobId);
	}

	public String getTableCode() {
		return (String) get("tableCode");
	}

	public void setTableCode(String tableCode) {
		put("tableCode", tableCode);
	}
	
	private boolean equalTaskType(String taskTypeCode){
		return getId().equals(taskTypeCode);
	}
	
	@Override
	public QcTaskTypeRow clone() {
		return (QcTaskTypeRow) super.clone();
	}
	
	public boolean equals(String taskTypeCode) {		
		return equalTaskType(taskTypeCode);
	}
}
